<?php if (!defined('THINK_PATH')) exit(); global $isLogin;?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title><?=C('APP_NAME')?>-后台管理系统</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="stylesheet" type="text/css" href="/statics/lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="/statics/stylesheets/theme.css">
    <link rel="stylesheet" href="/statics/lib/font-awesome/css/font-awesome.css">

	<script src="/statics/arts/artDialog.source.js?skin=default"></script>
	<script src="/statics/arts/iframeTools.source.js"></script>
	<script src="/statics/lib/jquery-1.7.2.min.js" type="text/javascript"></script>
	<script src="/statics/js/base.js" type="text/javascript"></script>
	<script type="text/javascript" src="/statics/lib/WdatePicker.js"></script>
	<link rel="stylesheet" href='/statics/css/lightbox.css'></link>
	<script type="text/javascript" src='/statics/js/lightbox.js'></script>
    <!-- Demo page code -->

    <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .brand { font-family: georgia, serif; }
        .brand .first {
            color: #ccc;
            font-style: italic;
        }
        .brand .second {
            color: #fff;
            font-weight: bold;
        }
    </style>
    
    <style>
		form {
			margin: 0;
		}
		textarea {
			display: block;
		}
		table {
	 		border:1px solid #dddddd
		}
	</style>
	<link rel="stylesheet" href="/statics/lib/themes/default/default.css" />
	<script charset="utf-8" src="/statics/lib/kindeditor-min.js"></script>
	<script charset="utf-8" src="/statics/lib/lang/zh_CN.js"></script>
	<script>
		var editor;
		KindEditor.ready(function(K) {
			editor = K.create('textarea[name="content"]', {
				allowFileManager : true,
				afterBlur:function(){
					   this.sync();
					},
			});
			K('input[name=getHtml]').click(function(e) {
				alert(editor.html());
			});
			K('input[name=isEmpty]').click(function(e) {
				alert(editor.isEmpty());
			});
			K('input[name=getText]').click(function(e) {
				alert(editor.text());
			});
			K('input[name=selectedHtml]').click(function(e) {
				alert(editor.selectedHtml());
			});
			K('input[name=setHtml]').click(function(e) {
				editor.html('<h3>Hello KindEditor</h3>');
			});
			K('input[name=setText]').click(function(e) {
				editor.text('<h3>Hello KindEditor</h3>');
			});
			K('input[name=insertHtml]').click(function(e) {
				editor.insertHtml('<strong>插入HTML</strong>');
			});
			K('input[name=appendHtml]').click(function(e) {
				editor.appendHtml('<strong>添加HTML</strong>');
			});
			K('input[name=clear]').click(function(e) {
				editor.html('');
			});
		});
	</script>

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

  </head>

  <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
  <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
  <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
  <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
  <!--[if (gt IE 9)|!(IE)]><!-->
  <script src="/statics/js/sever_top_side.js" type="text/javascript"></script>
  <body>
		  
<?php if($isLogin && !I('get.ifm')){?>
<body class=""> 
  <!--<![endif]-->
  	<p style="width:0%;border:2px solid pink;margin:0px;position:absolute;top:0px;left:0px;z-index:100000" id="loadIngCent"></p>
    <div class="navbar" id="loadIngCent_navbar">
        <div class="navbar-inner">
                <ul class="nav pull-right">
                    <!--<li><a href="#" class="hidden-phone visible-tablet visible-desktop ifrm" data-url="/sysmsg/showlogs" data-width="900" data-height="650" data-title="系统日志" data-params="" role="button">系统日志</a></li>-->
                    <li id="fat-menu" class="dropdown">
                        <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="/statics/images/addpic.png" alt="">
                            <?=getLoginMsg()->username?>
                            <i class="icon-caret-down"></i>
                        </a>
                        
                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="javascript:void(0)" id="myaccount" class="ifrm" data-url="/user/usercenter" data-width="450" data-height="450" data-title="我的账户" data-params="">我的账户</a></li>
                            <!--<li><a tabindex="-1" class="visible-phone" href="#">系统设置</a></li>-->
                            <li><a tabindex="-1"  href="/user/addAdmin" >新开帐号</a></li>
                            <li><a tabindex="-1" href="/user/loginout">注销</a></li>
                        </ul>
                    </li>
                </ul>
                <a class="brand" href="/user/loginout">
                    <img src="/statics/images/logo.png" alt=""><!--width: 18.5%;margin-right: .5em;vertical-align: -0.33333rem;-->
                    <span class="second">铜人宝医院安全管理系统</span>
                </a>
        </div>
    </div>
    <script>loadCent('20%',100);</script>
    <div class="sidebar-nav" id="sidebar-nav">
        <!--医院内部管理-->
		<a href="#accounts-menu-first-01" class="nav-header sidebar-nav-a collapsed" data-toggle="collapse">
            <img class="define-nav" src="/statics/images/sever_hospital.png" alt="">
            <span>医院内部管理</span>
            <img class="define-left" src="/statics/images/secer_left.png" alt="">
        </a>
		<ul id="accounts-menu-first-01"  class="accounts-menu-first-ul nav nav-list collapse">
            <li class="active">
                <a href="#accounts-menu-second-01" class="active-two accounts-menu-two-ul" data-toggle="collapse">科室管理</a>
            </li>
            <li class="active">
                <a href="#accounts-menu-second-02" class="active-two accounts-menu-two-ul" data-toggle="collapse">人员管理</a>
            </li>
            <li class="active">
                <a href="#accounts-menu-second-03" class="active-two accounts-menu-two-ul" data-toggle="collapse">患者管理</a><img class="define-left" src="/statics/images/secer_left.png" alt="">
                <ul id="accounts-menu-second-03"  class="nav nav-list collapse">
                    <li class="active active-three"><a href="javascript:;">患者账号管理</a></li>
                    <li class="active active-three"><a href="javascript:;">腕带管理</a></li>
                </ul>
            </li>
            <li class="active">
                <a href="#accounts-menu-second-04" class="active-two accounts-menu-two-ul" data-toggle="collapse">黑名单管理</a><img class="define-left" src="/statics/images/secer_left.png" alt="">
                <ul id="accounts-menu-second-04"  class="nav nav-list collapse">
                    <li class="active active-three"><a href="javascript:;">黑名单管理</a></li>
                    <li class="active active-three"><a href="javascript:;">权限管理</a></li>
                </ul>
            </li>
		</ul>

        <!--服务中心-->
        <a href="#accounts-menu-first-02" class="nav-header sidebar-nav-a collapsed" data-toggle="collapse">
            <img class="define-nav" src="/statics/images/sever_center.png" alt="">
            <span>服务中心</span>
            <img class="define-left" src="/statics/images/secer_left.png" alt="">
        </a>
        <ul id="accounts-menu-first-02"  class="accounts-menu-first-ul nav nav-list collapse">
            <li class="active">
                <a href="#accounts-menu-second-01" class="active-two accounts-menu-two-ul" data-toggle="collapse">患者呼叫</a>
            </li>
            <li class="active">
                <a href="#accounts-menu-second-02" class="active-two accounts-menu-two-ul" data-toggle="collapse">院内呼叫</a>
            </li>
        </ul>

        <!--预警管理-->
        <a href="#accounts-menu-first-03" class="nav-header sidebar-nav-a collapsed" data-toggle="collapse">
            <img class="define-nav" src="/statics/images/sever_warning.png" alt="">
            <span>预警管理</span>
            <img class="define-left" src="/statics/images/secer_left.png" alt="">
        </a>
        <ul id="accounts-menu-first-03"  class="accounts-menu-first-ul nav nav-list collapse">
            <li class="active">
                <a href="#accounts-menu-second-01" class="active-two accounts-menu-two-ul" data-toggle="collapse">预警处理</a>
            </li>
            <li class="active">
                <a href="#accounts-menu-second-02" class="active-two accounts-menu-two-ul" data-toggle="collapse">报警信号</a>
            </li>
            <li class="active">
                <a href="#accounts-menu-second-04" class="active-two accounts-menu-two-ul" data-toggle="collapse">报警卡绑定记录</a>
            </li>
        </ul>

        <!--投诉管理-->
        <a href="#accounts-menu-first-04" class="nav-header sidebar-nav-a collapsed" data-toggle="collapse">
            <img class="define-nav" src="/statics/images/sever_complaint.png" alt="">
            <span>投诉管理</span>
            <img class="define-left" src="/statics/images/secer_left.png" alt="">
        </a>
        <ul id="accounts-menu-first-04"  class="accounts-menu-first-ul nav nav-list collapse">
            <li class="active">
                <a href="#accounts-menu-second-04-01" class="active-two accounts-menu-two-ul" data-toggle="collapse">患者投诉</a><img class="define-left" src="/statics/images/secer_left.png" alt="">
                <ul id="accounts-menu-second-04-01"  class="nav nav-list collapse">
                    <li class="active active-three"><a href="javascript:;">投诉汇总</a></li>
                    <li class="active active-three"><a href="javascript:;">投诉参数设置</a></li>
                </ul>
            </li>
            <li class="active">
                <a href="#accounts-menu-second-04-02" class="active-two accounts-menu-two-ul" data-toggle="collapse">院内投诉</a><img class="define-left" src="/statics/images/secer_left.png" alt="">
                <ul id="accounts-menu-second-04-02"  class="nav nav-list collapse">
                    <li class="active active-three"><a href="javascript:;">投诉汇总</a></li>
                    <li class="active active-three"><a href="javascript:;">投诉参数设置</a></li>
                </ul>
            </li>
        </ul>

        <!--后勤管理-->
        <a href="#accounts-menu-first-05" class="nav-header sidebar-nav-a collapsed" data-toggle="collapse">
            <img class="define-nav" src="/statics/images/secer_logi.png" alt="">
            <span>后勤管理</span>
        </a>

        <!--资产管理-->
        <a href="#accounts-menu-first-06" class="nav-header sidebar-nav-a collapsed" data-toggle="collapse">
            <img class="define-nav" src="/statics/images/secer_property.png" alt="">
            <span>资产管理</span>
        </a>

        <!--公告管理-->
        <a href="#accounts-menu-first-07" class="nav-header sidebar-nav-a collapsed" data-toggle="collapse">
            <img class="define-nav" src="/statics/images/sever_announcements.png" alt="">
            <span>公告管理</span>
        </a>

        <!--管理账号管理-->
        <a href="#accounts-menu-first-08" class="nav-header sidebar-nav-a collapsed" data-toggle="collapse">
            <img class="define-nav" src="/statics/images/sever_account.png" alt="">
            <span>管理账号管理</span>
        </a>

    </div>
    <script>loadCent('30%',100);</script>
    <div class="content">
        <div class="header">
        	<!-- 
			<div class="stats">
				<p class="stat"><span class="number"><?=session('tj_life_regist')?></span>今日注册数</p>
				<p class="stat"><span class="number"><?=session('tj_life_port')?></span>今日订单数</p>
			</div> -->
			<!--<h1 class="page-title"><?=C('menus')[$_current_c[0]][$_current_c[1]]['tip']?></h1> -->
        </div>

        <div class="container-fluid">
            <div class="row-fluid">
            <script>
                loadCent('60%',100);
                height_loadIngCent_navbar();
                function height_loadIngCent_navbar() {
                    $('#sidebar-nav').css('top',$('#loadIngCent_navbar').outerHeight())
                }
                $(window).resize(function () {
                    height_loadIngCent_navbar();
                })
            </script>
<?php }?>
 <style>
    .define{
        background-color: #f6f6f6;
    }
    .container-fluid{
        padding: 0;
    }
    .define-nav{
        background-color: #FFF;
        padding: 0.39393939rem 0 0.39393939rem 0.848484rem;
    }
    .define-nav .pull-left{
        color: #666;
        display: inline-block;
        font-size: 0.54rem;
        margin-top:6px;
    }
    .define-nav .pull-right{
        margin-right: 0.909090rem;
    }
    #admin_search_people,
    #admin_add_people{
        width: 3.272727rem;
    }
    .define-nav-input{
        margin-top: 0.87878787rem;
        margin-left: 0.909090rem;
        background-color: #FFF;
        padding:  0.757575rem 0;
        margin-right: 0.909090rem;
    }
    .define-nav-input .pull-right{
        margin-right: 0.909090rem;
    }
    .define-nav-input .define-table-input:nth-child(1){
        padding-left: 0.60606060rem;
    }
    .define-nav-input .define-table-input:nth-child(3),
    .define-nav-input .define-table-input:nth-child(2){
        padding-left: 1.818181rem;
    }
    .define-nav-input span{
        font-size: 0.424242rem;
        display: inline-block;
        margin-top: 1px;
    }
    .define-nav-input input{
        margin: 0;
        padding: 0.1rem 0.2rem;
        width: 7.878787rem;
        height: 0.727272rem;
        line-height: normal;
        font-size: 0.424242rem;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        border-color: #E6E6E6;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
    }
    .define-nav-input input::-webkit-input-placeholder {
        font-size: 1px;
        line-height: 1;
    }
    .define-nav-input input:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
        font-size: 0.2rem;
        line-height: 2.2;
    }
    .define-nav-input input::-moz-placeholder { /* Mozilla Firefox 19+ */
        font-size: 0.2rem;
        line-height: 2.2;
    }
    .define-nav-input input:-ms-input-placeholder { /* Internet Explorer 10+ */
        font-size: 0.2rem;
        line-height: 2.2;
    }
    .define-table-input button{
        background-color: #F7F9FA;
        border: 1px solid #E6E6E6;
        color: #999;
        height: 1.03rem;
        line-height: 0.606060rem;
        padding-left: 0.303030rem;
        padding-right: 0.303030rem;
        font-size: 0.424242rem;
        border-radius: 3px;
    }
    .define-table-input button i{
        padding-left: 1.333333rem;
    }
    .define-table-input button:focus,
    .define-table-input button:active,
    .define-table-input button:hover{
        border: 1px solid #E6E6E6;
    }
    .define-table{
        margin-left: 0.9090909rem;
        margin-right: 0.9090909rem;
    }
    .table{
        border-radius: 3px;
        margin-bottom: 0;
        border: 1px solid #E6E6E6;
        font-size: 0.424242rem;
    }
    .table thead{
        background-color: #FAFAFA;
        color: #999;
    }
    .table tr{
        padding-left: 0.606060rem;
    }
    .table td{
        border-top: 1px solid #E6E6E6;
        border-bottom: 1px solid #E6E6E6;
        padding: 0.51515151rem 0.242424rem;
        line-height: 1.2;
    }
    .table tbody{
        background-color: #FFF;
    }
    .table tbody td{
        vertical-align: bottom;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .table-hover tbody tr:hover td{
        background-color: #fafafa;
    }
    .table tbody tr td.clearfix:last-child{
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }
    .table tbody tr td.clearfix:last-child .pull-left{
        padding: 0.1rem 0.2rem ;
    }
    .table tbody tr td.clearfix:last-child .pull-left:hover{
        background-color: #e6e6e6;
        border-radius: 2px;
    }
    .table tbody td:nth-child(6){
        padding: 3px 0;
    }
    .table tbody td:nth-child(6) img{
        width: 1.212121rem;
        vertical-align: -1px;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
    }
    td.clearfix img{
        width: 0.393939rem;
        vertical-align: -2px;
        margin-right: 5px;
    }
    td.clearfix div:nth-child(2),
    td.clearfix div:nth-child(3){
        margin-left: 0.606060rem;
    }
    #add_user_modal .clearfix > div:nth-child(1) img{
        width: 2.3939393rem;
        height: 2.3939393rem;
        min-width: 57px;
        min-height: 57px;
    }
    #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
        border: 1px solid #e6e6e6;
        text-align: center;
        width: 34%;
        padding: 0.166666rem 0;
        border-radius: 3px;
        margin-top: 4%;
        cursor: pointer;
    }
    #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
        color: #C9C8C8;
        margin-left: 0;
        margin-top: 3%;
    }
    .define-paging{
        margin-top: 0.6363rem;
        display: block;
        color: #999;
        font-size: 0.363636rem;
        text-align: center;
    }
    /*改变鼠标悬浮样式  ↓*/
    .table tbody tr td.clearfix:last-child .pull-left:hover,
    .define-paging .pull-left:not(:first-child){
        cursor: pointer;
    }
    /*改变鼠标悬浮样式  ↑*/
    .define-paging .pull-left{
        padding: 0 0.272727rem;
    }
    .define-page.define-active{
        color: #47489A;
    }
    .define-paging .pull-left:first-child{
        margin-left: 38%;
        letter-spacing: 0.2rem;
    }

    /*弹层样式*/
    .modal{
        margin: 0;
        width: 24.5%;
        min-width: 470px;
        left: 40%;
    }
    .modal.fade.in{
        top: 26%;
    }
    .modal-backdrop, .modal-backdrop.fade.in{
        opacity: 0.5;
    }
    .modal-header{
        background-color: #fafafa;
        color: #1CC7BD;
        font-size: 12px;
        padding: 0.3484848rem 0.636363rem;
    }
    .modal-header img{
        position: absolute;
        top:8%;
        right: 0.636363rem;
    }
    .modal-header img:hover{
        -webkit-animation: img_hover_rotate .2s linear;
        -o-animation: img_hover_rotate .2s linear;
        animation: img_hover_rotate .2s linear;
    }
    .modal .modal-body{
        font-size: 12px;
        padding: 2.4em;
    }
    @-webkit-keyframes img_hover_rotate {
        0%{  -webkit-transform: rotate(0deg);  }
        100%{  -webkit-transform: rotate(90deg);  }
    }
    @-o-keyframes img_hover_rotate {
        0%{  -o-transform: rotate(0deg);  }
        100% {  -o-transform: rotate(90deg);  }
    }
    @-ms-keyframes img_hover_rotate {
        0%{  -ms-transform: rotate(0deg);  }
        100%{  -ms-transform: rotate(90deg);  }
    }
    @-moz-keyframes img_hover_rotate {
        0%{  -moz-transform: rotate(0deg);  }
        100%{  -moz-transform: rotate(90deg);  }
    }
    @-khtml-keyframes img_hover_rotate {
        0%{  -khtml-transform: rotate(0deg);  }
        100%{  -khtml-transform: rotate(90deg);  }
    }
    @keyframes  img_hover_rotate{
        0%{  transform: rotate(0deg);  }
        100%{  transform: rotate(90deg);  }
    }
    .modal .modal-body table{
        border: none;
        width: 100%;
    }
    #modal_select_btn+img{
        position: absolute;
        right: 5.5%;
        top: 34.5%;
    }
    .modal .modal-body table>tbody>tr>td{
        padding-bottom: 0.57575757rem;
    }
    .modal .modal-body table>tbody>tr>td:nth-child(1){
        width: 57px;
        text-align: right;
    }
    .modal .modal-body table>tbody>tr>td:nth-child(1) img{
        vertical-align: text-top;
    }
    .modal .modal-body input{
        margin: 0 0 0 5px;
        width: 98%;
        font-size: 12px;
        height: 0.78787878rem;
        line-height: 0.78787878rem;
        -webkit-box-shadow: none;
        box-shadow: none;
        border: 1px solid #e6e6e6;
        border-radius: 3px;
    }
    .modal .modal-body input:focus{
        border-color: rgba(82, 168, 236, 0.8);
        outline: 0;
        outline: thin dotted \9;
        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
        -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
    }
    .modal .modal-body input:-moz-placeholder{
        color: #C9C8C8;
        font-size: 12px;
    }
    .modal .modal-body input:-ms-input-placeholder{
        color: #C9C8C8;
        font-size: 12px;
    }
    .modal .modal-body input::-webkit-input-placeholder {
        color: #C9C8C8;
        font-size: 12px;
    }
    #modal_reset,
    #modal_sure_add{
        background-color: #1CC7BD;
        color: #FFF;
        text-align: center;
        padding: 0.166666rem 0;
        border-radius: 3px;
        width: 24%;
    }
    #modal_reset:hover,
    #modal_sure_add:hover{
        background-color: #18ADA4;
    }
    #modal_reset{
        margin-left: 22.5%;
    }
    #modal_sure_add{
        margin-right: 22.5%;
    }

    /*请填写完整信息弹层*/
    #department_modal_tip,
    #department_modal_delete{
        width: 15%;
        min-width: 220px;
        z-index: 1051;
    }
    #department_modal_tip .modal-body,
    #department_modal_delete .modal-body{
        text-align: center;
    }
    #department_modal_tip .modal-header,
    #department_modal_delete .modal-header{
        background-color: #FFF;
    }
    #department_modal_tip .modal-body div:nth-child(1){
        margin-top: 1em;
    }
    #department_modal_tip .modal-body div:nth-child(2){
        background-color: #1CC7BD;
        color: #FFF;
        margin: 2em auto 0 auto;
        width: 30%;
        padding: 0.1666666rem 0;
        border-radius: 3px;
    }
    #department_modal_tip .modal-body div:nth-child(2):hover{
        background-color: #18ADA4;
        cursor: pointer;
    }
    /*删除信息弹层*/
    #department_modal_delete .clearfix div{
        border: 1px solid transparent;
        width: 28%;
        border-radius: 3px;
        padding: 0.166666rem 0;
    }
    #department_modal_delete .clearfix div:nth-child(1){
        margin-left: 17%;
        color: #999;
        border-color: #999;
    }
    #department_modal_delete .clearfix div:nth-child(2){
        margin-right: 17%;
        border-color: #1CC7BD;
        background-color: #1CC7BD;
        color: #FFF;
    }
    #department_modal_delete .modal-body>div:nth-child(1){
        margin-top: 1em;
        margin-bottom: 1em;
    }
    /*选择预警级别*/
    #modal_select_level{
        display: none;
        border: 1px solid #e6e6e6;
        position: absolute;
        background-color: #FFF;
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
        border-top: none;
        max-height: 68px;
        left: 6px;
        overflow: auto;
    }
    #modal_select_level.active{
        display: block;
    }
    #modal_select_level div{
        height: 0.78787878rem;
        line-height: 0.78787878rem;
        padding: 4px 6px;
    }
    #modal_select_level div:hover{
        background-color: #FAFAFA;
    }
    #modal_select_level div.active{
        background-color: #e6e6e6;
    }

    /*适配*/
    @media (min-width: 1024px){
        /*18*/
        .define-nav .pull-left{
            font-size: 15px;
            margin-top: 3px;
        }
        .define-table-input button{
            line-height: 1.33;
        }
        td.clearfix img{
            width: 0.55rem;
            vertical-align: -1px;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.6rem;
        }
        .table tbody td:nth-child(6) img{
            vertical-align: 0;
        }
        .define-nav-input input{
            line-height: normal;
            font-size: 0.424242rem;
        }
        .modal-header img{
            top: 3.5%
        }
        #modal_select_btn+img{
            right: -2.5%;
            top: 28%;
        }
        #department_modal_tip .modal-header img,
        #department_modal_delete .modal-header img{
            top: 5.8%
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 2%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 2%;
        }
        .define-nav-input span{
            margin-top: -1px;
        }
    }
    @media (min-width: 1100px) {
        /*20*/
        .define-table-input button{
            line-height: 1.45;
        }
        td.clearfix img{
            vertical-align: -2px;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 2%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 2%;
        }
        .define-nav-input span{
            margin-top: 0;
        }
    }
    @media (min-width: 1280px) {
        /*22*/
        .define-nav .pull-left{
            font-size: 17px;
            margin-top: 3px;
        }
        .define-table-input button{
            line-height: 1.7;
        }
        td.clearfix img{
            width: 0.5rem;
        }
        #department_modal_tip .modal-header img,
        #department_modal_delete .modal-header img{
            top: 6.8%
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 2%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 1%;
        }
        .define-nav-input span{
            margin-top: 2px;
        }
    }
    @media (min-width: 1366px) {
        /*24*/
        .define-nav .pull-left{
            font-size: 17px;
            margin-top: 3px;
        }
        .define-table-input button{
            line-height: 1.9;
        }
        td.clearfix img{
            width: 0.45rem;
            vertical-align: -1px;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.5rem;
        }
        #modal_select_btn+img{
            right: -2.5%;
            top: 28.5%;
        }
        .define-nav-input span{
            margin-top: 3px;
        }
    }
    @media (min-width: 1440px) {
        /*25*/
        .define-nav .pull-left{
            margin-top: 4px;
        }
        .define-table-input button{
            line-height: 1.95;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.45rem;
        }
        .modal-header img{
            top: 3.8%
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 2%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 1%;
        }
    }
    @media (min-width: 1680px) {
        /*28*/
        .define-nav .pull-left{
            font-size: 18px;
            margin-top: 5px;
        }
        .define-table-input button{
            line-height: 2.2;
        }
        td.clearfix img{
            width: 0.36rem;
            vertical-align: -1px;
        }
        td.clearfix div:nth-child(3) img{
            width: 0.4rem;
        }
        .table tbody td:nth-child(6) img{
            vertical-align: -1px;
        }
        .modal-header img{
            top: 4.1%
        }
        #modal_select_btn+img{
            right: -2%;
            top: 30%;
        }
        #department_modal_tip .modal-header img,
        #department_modal_delete .modal-header img{
            top: 7.8%
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 3%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 2%;
        }
        .define-nav-input span{
            margin-top: 5px;
        }
    }
    @media (min-width: 1920px) {
        /*33*/
        .define-nav .pull-left{
            font-size: 0.54rem;
            margin-top: 6px;
        }
        #modal_select_btn+img{
            right: -0.5%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(1){
            margin-top: 4%;
        }
        #add_user_modal .clearfix > div:nth-child(2) div:nth-child(3){
            margin-top: 3%;
        }
        .define-nav-input span{
            margin-top: 6px;
        }
    }

</style>

<div class="define">
    <div class="define-nav clearfix">
        <div class="pull-left">黑名单管理</div>
        <div class="pull-right"><img id="admin_add_people" src="/statics/images/sever_add.png" alt=""></div>
    </div>

    <div class="define-nav-input clearfix">
        <form action="" method="get" id="search_form">
        <div class="define-table-input pull-left clearfix">
            <span class="pull-left">姓名：</span>
            <input class="pull-left" name="name" type="text" placeholder="请输入姓名" value="<?=I('get.name')?>">
        </div>
        <div class="define-table-input pull-left clearfix">
            <span class="pull-left">手机号：</span>
            <input class="pull-left" name="phone" type="text" placeholder="请输入手机号" value="<?=I('get.phone')?>">
        </div>
        </form>

        <div class="define-table-input pull-right">
            <img id="admin_search_people" src="/statics/images/sever_search.png" alt="">
        </div>
    </div>

    <div style="margin-left: 0.90rem;font-size: 0.424242rem;margin-top: 0.545454rem;margin-bottom: 0.545454rem;">全部结果</div>

    <?php $warnType = ['无','一级','二级','三级','四级'];?>
    <div class="define-table">
        <table class="table table-hover" id="table_handle">
            <thead>
            <tr>
                <td>序号</td>
                <td>患者姓名</td>
                <td>手机号</td>
                <td>年龄</td>
                <td>性别</td>
                <td>人员图像</td>
                <td>添加时间</td>
                <td>预警级别</td>
                <td>操作</td>
            </tr>
            </thead>
            <tbody>
            <?php if($getData){foreach($getData as $k=>$v){?>
            <tr>
                <td><?=$v['patient_id']?></td>
                <td><?=$v['patient_name']?></td>
                <td><?=$v['mobile']?></td>
                <td><?=$v['age']?></td>
                <td><?=$v['sex']?'男':'女'?></td>
                <td><img src="<?=$v['head_img']?>" alt=""></td>
                <td><?=date('Y-m-d',$v['add_at'])?></td>
                <td><?=$warnType[$v['warning_level']]?></td>
                <td class="clearfix">
                    <div class="pull-left define_edit"><img src="/statics/images/sever_edit.png" alt="">编辑</div>
                    <div class="pull-left define_delete" patient_id="<?=$v['patient_id']?>"><img src="/statics/images/sever_delete_all.png" alt="">删除</div>
                </td>
            </tr>
           <?php }}else{?>
            <tr>
                <td colspan=9 style="text-align: center">暂无数据</td>
            </tr>
            <?php }?>
            </tbody>
        </table>
    </div>

    <!--分页  开始-->
    <!--<div class="define-paging clearfix">-->
        <!--<div class="pull-left">共8页</div>-->
        <!--<div class="pull-left" id="the_first_page">首页</div>-->
        <!--<div class="pull-left" id="prev_page">上一页</div>-->
        <!--<div class="pull-left define-page define-active">1</div>-->
        <!--<div class="pull-left define-page">2</div>-->
        <!--<div class="pull-left define-page">3</div>-->
        <!--<div class="pull-left define-page">4</div>-->
        <!--<div class="pull-left define-page">5</div>-->
        <!--<div class="pull-left" id="next_page">下一页</div>-->
        <!--<div class="pull-left" id="the_last_page">尾页</div>-->
    <!--</div>-->
    <?=$page?>
    <!--分页  结束-->
</div>

<!--添加人员弹层  开始-->
<div class="modal fade" tabindex="-1" role="dialog" id="add_user_modal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <span class="define-modal-close" data-dismiss="modal" aria-label="Close"><img src="/statics/images/sever_close.png" alt=""></span>
                <div class="modal-title">添加黑名单</div>
            </div>
            <!--默认  添加绑定-->
            <div class="modal-body">
                <table>
                    <tr>
                        <td><img src="/statics/images/sever_must_write.png" alt="">患者姓名:</td>
                        <td>
                            <input type="text" placeholder="请输入患者姓名">
                        </td>
                    </tr>
                    <tr>
                        <td><img src="/statics/images/sever_must_write.png" alt="">手机号:</td>
                        <td>
                            <input type="text" placeholder="请输入手机号">
                        </td>
                    </tr>
                    <tr>
                        <td>人员图像:</td>
                        <td class="clearfix">
                            <div class="pull-left" style="margin-left: 5px;"><img id="modal_select_img_show" src="/statics/images/sever_defaultimg_parameter.png" alt=""></div>
                            <div class="pull-left" style="margin-left: 1%;">
                                <div id="modal_select_img_btn">选择图片</div>
                                <form id="modal_select_img_form" style="display: none;">
                                    <input type="file" id="modal_select_img_input">
                                </form>
                                <div>支持PNG,JPG等图片格式。大小不超过2M。</div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td><!--<img src="/statics/images/sever_must_write.png" alt="">-->预警级别:</td>
                        <td style="position: relative;">
                            <input id="modal_select_btn" style="cursor: default;" onfocus="this.blur()" type="text" placeholder="请选择预警级别">
                            <img src="/statics/images/sever_unretrieve.png" alt="">
                            <div id="modal_select_level">
                                <div>一级</div>
                                <div>二级</div>
                                <div>三级</div>
                                <div>四级</div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="clearfix" style="padding-bottom: 0">
                            <div id="modal_reset" class="pull-left">重置</div>
                            <div id="modal_sure_add" class="pull-right">确认添加</div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
<!--添加人员弹层  结束-->

<!--信息填写提示  开始-->
<div class="modal fade" tabindex="-1" role="dialog" id="department_modal_tip">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <span class="define-modal-close" data-dismiss="modal" aria-label="Close"><img src="/statics/images/sever_close.png" alt=""></span>
                <div class="modal-title">信息</div>
            </div>
            <div class="modal-body">
                <div>请填写完成必填信息！</div>
                <div data-dismiss="modal" aria-label="Close">确定</div>
            </div>
        </div>
    </div>
</div>
<!--信息填写提示  结束-->

<!--删除信息提示框  开始-->
<div class="modal fade" tabindex="-1" role="dialog" id="department_modal_delete">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <span class="define-modal-close" data-dismiss="modal" aria-label="Close"><img src="/statics/images/sever_close.png" alt=""></span>
                <div class="modal-title">提示</div>
            </div>
            <div class="modal-body">
                <div>是否删除该信息？</div>
                <div class="clearfix" style="margin-top: 2em;">
                    <div style="cursor: pointer;" class="pull-left" data-dismiss="modal" aria-label="Close">取消</div>
                    <div style="cursor: pointer;" class="pull-right" id="modal_delete_sure">确定</div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--删除信息提示框  结束-->

<!--添加黑名单表单  开始-->
<form action="" method="post" id="add_user_form" style="display: none;">
    <input type="text" name="patient_name"><!--患者姓名-->
    <input type="text" name="phone_num"><!--手机号-->
    <input type="text" name="user_img"><!--人员图像-->
    <input type="text" name="warn_level"><!--预警级别-->
</form>
<!--添加黑名单表单  结束-->

<script>
    $(document).ready(function () {
        //监测浏览窗口动态变化
        $(window).resize(function () {
            amend_modal_place( $('#add_user_modal'));//修正弹窗位置  始终处于屏幕中央  添加人员
            amend_modal_place( $('#department_modal_tip'));//修正弹窗位置  始终处于屏幕中央  必填信息提示

            modal_select_warn_level_length();//添加人员弹窗  选择预警级别下拉选择框  长度赋值
        });

        //设置当前页面选中样式
        setting_style_the_page();
        function setting_style_the_page() {
            var first_menu_item = $('#sidebar-nav').find('a[href="#accounts-menu-first-01"]');//获取一级菜单可点击的a标签
            var img_nav = first_menu_item.find('.define-nav');//获取导航图片
            var img_left = first_menu_item.find('.define-left');//获取转向图片
            var first_ul = $('#accounts-menu-first-01');//获取一级下拉菜单
            var first_ul_li_one = first_ul.children('li').eq(3);//获取  "黑名单管理"

            var second_menu_item = $('#sidebar-nav').find('a[href="#accounts-menu-second-04"]');//获取二级菜单可点击的a标签
            var second_img_left = second_menu_item.parent().find('.define-left');//获取转向图片
            var second_ul = $('#accounts-menu-second-04');//获取二级下拉菜单
            var second_ul_li_one = second_ul.children('li').eq(0);//获取  "黑名单管理"

            first_menu_item.addClass('define-active');//一级菜单添加左边横线
            img_nav.attr('src','/statics/images/sever_hospital_select.png');//切换导航图片
            img_left.addClass('define-rotate-active');//添加动画类
            first_ul.addClass('in');//展拉一级菜单
            first_ul_li_one.addClass('define-active');//li添加左边横线

            second_ul.addClass('in');//展开二级菜单
            second_img_left.addClass('define-rotate-active');//添加动画类
            second_ul_li_one.addClass('define-active');//"患者账号管理"  添加选中样式
        }

        //分页切换效果
	    page_style_switch();
	    function page_style_switch() {
		    var page_ = $('.define-paging');
		    var the_first_page = $('#the_first_page');//获取首页
		    var prev_page = $('#prev_page');//获取上一页
		    var next_page = $('#next_page');//获取下一页
		    var the_last_page = $('#the_last_page');//获取尾页

		    // 123456
		    page_.delegate('.define-page','click',function () {
			    page_.find('.define-page').removeClass('define-active');
			    $(this).addClass('define-active');
		    });

		    // 上一页
		    prev_page.on('click',function () {
			    var active_page = page_.find('.define-active');
			    if(active_page.text() > 1){
				    page_.find('.define-page').removeClass('define-active');
				    active_page.prev().addClass('define-active')
			    }
		    });

		    // 下一页
		    next_page.on('click',function () {
			    var active_page = page_.find('.define-active');
			    if(active_page.text() < 5){
				    page_.find('.define-page').removeClass('define-active');
				    active_page.next().addClass('define-active')
			    }
		    });

		    // 首页
		    the_first_page.on('click',function () {
			    page_.find('.define-page').removeClass('define-active');
			    page_.find('.define-page').eq(0).addClass('define-active');
		    });

		    // 尾页
		    the_last_page.on('click',function () {
			    page_.find('.define-page').removeClass('define-active');
			    page_.find('.define-page').eq(4).addClass('define-active');
		    });

	    }

        /*页面*/
        //搜索功能
        search_function();
        function search_function() {
            $('#admin_search_people').on('click',function () {
                $('#search_form').submit();
            });
        }

	    //删除操作
	    page_delete();
	    function page_delete() {
		    var table_handle = $('#table_handle');//获取table
		    table_handle.delegate('.define_delete','click',function () {
                patient_id = $(this).attr('patient_id');
			    amend_modal_place($('#department_modal_delete'));//确定  修改弹层的位置  删除信息
			    $('#department_modal_delete').modal({keyboards:false});
			    click_btn_delete_handle($(this),patient_id);//点击确定  执行删除操作
		    });
	    }

	    //点击确定  执行删除操作
	    function click_btn_delete_handle($btn,$patient_id) {
		    var tr = $btn.parents('tr');
		    $('#modal_delete_sure').on('click',function () {
                window.location.href = '/patient/del_blacklist?patient_id='+$patient_id;
			    $('#department_modal_delete').modal('hide');
		    });
	    }

        /*弹层*/
        //弹层  修正弹窗位置  始终处于屏幕中央
        function amend_modal_place($modal) {
            var window_width = $(window).width();
            var window_height = $(window).height();
            var width = $modal.width();
            var height = $modal.height();

            var left = ( window_width - width ) / 2;
            var top  = ( window_height - height ) / 2;

            $modal.css('left',left);
            $modal.css('top',top);
        }

        //点击添加  show添加人员弹层
        show_add_user_modal();
        function show_add_user_modal() {
            $('#admin_add_people').on('click',function () {
                amend_modal_place( $('#add_user_modal') );//修正弹窗位置  始终处于屏幕中央  添加人员
                $('#add_user_modal').modal({keyboard:false});
            });
        }

        //添加人员弹窗  选择图片按钮  预览效果
        click_select_img();
        function click_select_img() {
            var modal_select_img_btn = $('#modal_select_img_btn');
            modal_select_img_btn.on('click',function () {
                local_input_click($('#modal_select_img_input'));//弹层  添加图片
                previewImg($('#modal_select_img_input'),$('#modal_select_img_show'));//弹层  选定需要上传的文件之后  展示在窗口  预览即将上传的图片
            });
        }

        //弹层  添加图片
        function local_input_click($input) {
            return $input.click();
        }

        //弹层  选定需要上传的文件之后  展示在窗口  预览即将上传的图片
        function previewImg($input,$img) {
            $input.change(function () {
                var objUrl = getObjectURL(this.files[0]) ;//获取文件url
                //如果不是img文件 ，提示不能选择此类文件
                if (this.files[0].type !== 'image/jpeg' && this.files[0].type !== 'image/png' && this.files[0].type !== 'image/gif') {
                    alert('不是有效的图片文件!');
                    $img.attr('src', '/statics/images/addpic.png');//赋值控制给img
                    return;
                }
                //获取到url 赋值img的url  并展示
                if (objUrl) {
                    $img.attr('src', objUrl);//赋值控制给img
                    mdal_sure_add_function_img($(this));//弹层  确认添加功能 图像处理
                }
            });
        }

        //弹层  获取文件的url
        function getObjectURL(file) {
            var url = null ;
            if (window.createObjectURL != undefined) {
                url = window.createObjectURL(file) ;// basic
            }
            else if (window.URL != undefined) {
                url = window.URL.createObjectURL(file) ;// mozilla(firefox)
            }
            else if (window.webkitURL != undefined) {
                url = window.webkitURL.createObjectURL(file) ;// webkit or chrome
            }
            return url ;
        }

        //添加人员弹窗  选择按钮  消除圆角
        function modal_select_btn_hide_radius($btn) {
            $btn.css('borderBottomLeftRadius','0');
            $btn.css('borderBottomRightRadius','0');
        }

        //添加人员弹窗  选择按钮  添加圆角
        function modal_select_btn_show_radius($btn) {
            $btn.css('borderBottomLeftRadius','3px');
            $btn.css('borderBottomRightRadius','3px');
        }

        //添加人员弹窗  点击选择预警级别
        modal_click_select_warn_level();
        function modal_click_select_warn_level() {
            var modal_select_btn = $('#modal_select_btn');//获取点击按钮
            var modal_select_level = $('#modal_select_level');//获取下拉选择框

            modal_select_btn.on('click',function () {
                modal_select_warn_level_length();//添加人员弹窗  选择预警级别下拉选择框  长度赋值
                if( modal_select_level.hasClass('active') ){
                    modal_select_level.animate({
                        height: 'toggle'
                    },500,function () {
                        modal_select_btn_show_radius(modal_select_btn);//添加人员弹窗  选择按钮  消除圆角
                    });
                    modal_select_level.removeClass('active');
                }else {
                    modal_select_level.animate({
                        height: 'toggle'
                    },500);
                    modal_select_btn_hide_radius(modal_select_btn);//添加人员弹窗  选择按钮  消除圆角
                    modal_select_level.addClass('active');
                }
            });
        }

        //添加人员弹窗  选择预警级别下拉选择框  长度赋值
        function modal_select_warn_level_length() {
            var modal_select_btn = $('#modal_select_btn');//获取点击按钮
            var modal_select_level = $('#modal_select_level');//获取下拉选择框

            modal_select_level.width( modal_select_btn.outerWidth() - 2 );
        }

        //添加人员弹窗  选择预警级别功能
        modal_select_warn_level_function();
        function modal_select_warn_level_function() {
            var modal_select_btn = $('#modal_select_btn');//获取点击按钮
            var modal_select_level = $('#modal_select_level');//获取下拉选择框

            modal_select_level.delegate('div','click',function () {
                var self = $(this);
                modal_select_level.find('div').removeClass('active');
                self.addClass('active');
                modal_select_btn.val( self.text() );
                modal_select_level.animate({
                    height: 'toggle'
                },500,function () {
                    modal_select_btn_show_radius(modal_select_btn);//添加人员弹窗  选择按钮  消除圆角
                });
                modal_select_level.removeClass('active');
            })
        }

        //添加人员弹层  必填选项验证
        modal_verify_must_write();
        function modal_verify_must_write() {
            var input = $('#add_user_modal').find('input');
            $('#modal_sure_add').on('click',function () {
                if( input.eq(0).val() == '' || input.eq(1).val() == '' ){
                    amend_modal_place( $('#department_modal_tip'));//修正弹窗位置
                    $('#department_modal_tip').modal({keyboard:false});//弹出弹层
                    $('body').children('.modal-backdrop:last-child').css('zIndex','1050');//修改弹层层级
                }else {
                    //提交表单
                    mdal_sure_add_function();//弹层  确认添加功能  form表单赋值
                }
            });
        }

        //弹层  确认添加功能  form表单赋值
        function mdal_sure_add_function() {
            var form = $('#add_user_form');//form表单
            var input = $('#add_user_modal').find('input');

            form.find('input[name="patient_name"]').val( input.eq(0).val() );/*患者姓名*/
            form.find('input[name="phone_num"]').val( input.eq(1).val() );/*手机号*/
            form.find('input[name="warn_level"]').val( input.eq(3).val() );/*预警级别*/

            mdal_sure_add_function_ajax( form.serialize() );//弹层  确认添加功能 ajax
        }

        //弹层  确认添加功能 图像处理
        function mdal_sure_add_function_img($input) {
            var form = $('#add_user_form');//form表单
            var formData = new FormData();
            formData.append('file',$input[0].files[0]);

            form.find('input[name="user_img"]').val( formData );/*人员图像*/
        }

        //弹层  确认添加功能 ajax
        function mdal_sure_add_function_ajax(data) {
            $.ajax({
                url: '',
                type: 'POST',
                dataType: 'json',
                data: data,
                success:function(data){
                    console.log(data);
                },
                error: function (err) {
                    console.log(err);
                }
            })
        }

        //添加人员弹层  重置功能
        modal_add_user_reset();
        function modal_add_user_reset() {
            var modal_resever = $('#modal_reset');//重置按钮
            var input = $('#add_user_modal').find('input');

            modal_resever.on('click',function () {
                input.eq(0).val('');
                input.eq(1).val('');
            });
        }

    });
</script>
 <script>loadCent('80%',100);</script>
 <?php if($isLogin && !I('get.ifm')){?>

            </div>
        </div>
    </div>
	<script type="text/html" id="notice">
		<div class="alert alert-info" style="display:none;margin:1px 0 5px 0;">
     	   	<button type="button" class="close" data-dismiss="alert">×</button>
     	   	<strong>温馨提示:</strong> <span class="maintips"></span>
   	 	</div>
	</script>
	<script src="/statics/lib/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            if($.cookie('_sysdomain')){
            	var cookiePars = $.cookie('_sysdomain');
            	parmComb = cookiePars.split('@');
            	$('.row-fluid:first').prepend($('#notice').html());
            	$('.alert .maintips').html(parmComb[0]);
            	$('.alert').show(10,function(){
            			$.cookie('_sysdomain',null,{'path':'/'});
	            		setTimeout(function(){
	            			$('.alert').slideUp(600,function(){
	            				$('.alert').remove();
	            			});
	            			var list = window.parent.art.dialog.list;
	            			if(parmComb[1] != '0')
	            				window.parent.location = parmComb[1];
	            			else
	            				window.parent.location.reload();
	            			list['TIPCHOSEID'].close();
	            		},2000);
            		});
            }
        });
        $(function(){
        	$('.ifrm').live('click',function(){
        		opens($(this).data('url'),$(this).data('width'),$(this).data('height'),$(this).data('title'),$(this).data('params'));
        		return false;
        	});
        	$('.ifrm').each(function(){
           		$(this).attr('title',$(this).data('title'));
           	});
        	<?php if(!isset($_SESSION['tj_life']) || (time()-$_SESSION['tj_life'] > 3600)){?>
		   		//$.get('/index/getCountCj',{},function(){});
		   	<?php }?>
        })
    </script>
  </body>
</html>
<?php }else{?>
            </div>
        </div>
    </div>
	<script src="/statics/lib/bootstrap/js/bootstrap.js"></script>
	<script type="text/html" id="notice">
		<div class="alert alert-info" style="display:none;margin:1px 0 5px 0;">
     	   	<button type="button" class="close" data-dismiss="alert">×</button>
     	   	<strong>温馨提示:</strong> <span class="maintips"></span>
   	 	</div>
	</script>
    <script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            if($.cookie('_sysdomain')){
            	var cookiePars = $.cookie('_sysdomain');
            	parmComb = cookiePars.split('@');
            	$('.row-fluid:first').prepend($('#notice').html());
            	$('.alert .maintips').html(parmComb[0]);
            	$('.alert').show(10,function(){
            			$.cookie('_sysdomain',null,{'path':'/'});
            			$.cookie('_sysdomain',null);
                		setTimeout(function(){
                			$('.alert').slideUp(600,function(){
                				$('.alert').remove();
    	            			var list = window.parent.art.dialog.list;
    	            			if(parmComb[1] != '0')
    	            				window.parent.location = parmComb[1];
    	            			else
    	            				window.parent.location.reload();
    	            			list['TIPCHOSEID'].close();
                			});
                		},2000);
            		});
            }
           	$('.ifrm').click(function(){
        		opens($(this).data('url'),$(this).data('width'),$(this).data('height'),$(this).data('title'),$(this).data('params'));
        		return false;
        	});
           	$('.ifrm').each(function(){
           		$(this).attr('title',$(this).data('title'));
           	});
        	<?php if(!isset($_SESSION['tj_life']) || (time()-$_SESSION['tj_life'] > 3600)){?>
		   		//$.get('/index/getCountCj',{},function(){});
		   	<?php }?>
        })
    </script>
  </body>
</html>
<?php }?>
<script>loadCent('100%',100);setTimeout(function(){$('#loadIngCent').fadeOut('fast')},800);</script>